package com.yuwj.chinaa.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yuwj.chinaa.R;
import com.yuwj.chinaa.entity.EntityNotice;

import java.util.List;

/**
 * 消息adapter
 */
public class NoticeAdapter extends BaseQuickAdapter<EntityNotice, BaseViewHolder> {
    Context context;

    public NoticeAdapter(Context context, List<EntityNotice> datas) {
        super(R.layout.item_notice, datas);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, final EntityNotice item) {
        holder.setText(R.id.tv_time, item.getCreateTime());
        holder.setText(R.id.tv_title, item.getMsgTitle());
        holder.setText(R.id.tv_content, item.getMsgDes());
    }

}
